package com.mjh.zhujianju.dao.base;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.livew.framework.base.dao.BaseMapper;
import com.mjh.zhujianju.model.base.AreasEO;

@Repository
public interface AreasMapper extends BaseMapper<AreasEO> {

	List<AreasEO> selectListByParentCode(@Param("code")String code);
	
	/**
	 * 孩子
	 * @param code
	 * @return
	 */
	List<AreasEO> selectChildListByCode(@Param("code")String code);
	
	/**
	 * 兄弟姐妹
	 * @param code
	 * @return
	 */
	List<AreasEO> selectSiblingListByCode(@Param("code")String code);
	
	List<AreasEO> selectList(@Param("list")List<String> codes);
	
	List<AreasEO> selectProvinceList();
	
}